//
//  UIView+JSHandler.h
//  ShopMobile
//
//  Created by mac on 17/10/18.
//  Copyright © 2017年 json. All rights reserved.
//

#import <UIKit/UIKit.h>
@class JSKitManager;

static const int isForum = 1;
@interface UIView (JSHandler)

@property (nonatomic, assign) CGFloat js_x;
@property (nonatomic, assign) CGFloat js_y;
@property (nonatomic, assign) CGFloat js_width;
@property (nonatomic, assign) CGFloat js_height;
@property (nonatomic, assign) CGSize  js_size;
@property (nonatomic, assign) CGFloat js_centerX;
@property (nonatomic, assign) CGFloat js_centerY;


@property (nonatomic) CGFloat left_js;        ///< Shortcut for frame.origin.x.
@property (nonatomic) CGFloat top_js;         ///< Shortcut for frame.origin.y
@property (nonatomic) CGFloat right_js;       ///< Shortcut for frame.origin.x + frame.size.width
@property (nonatomic) CGFloat bottom_js;      ///< Shortcut for frame.origin.y + frame.size.height
@property (nonatomic, strong) JSKitManager *kitManager;

/** - 判断一个控件是否真正显示在主窗口 - */
- (BOOL)isShowingOnKeyWindow;

- (void)js_addSubviews:(NSArray *)subviews;

-(dispatch_block_t)js_RandomColor;

@end
